package com.heying.springbootweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")//一级路径
public class HomeController {

    @GetMapping("/")//只处理get请求
    public String home(){

        return "main";//逻辑视图名

    }
}
